package com.eol.entity.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * CourseTypeDto
 *
 * @author liulinhui
 * @email 1249055292@qq.com
 * @date 2020/6/9 11:00
 */
@Data
public class CourseTypeDto implements Serializable {

    @ApiModelProperty(value = "")
    private String id;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "上级")
    private String pid;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CourseTypeDto> children;

    public String getLabel() {
        return name;
    }

}
